package cn.com.connext.scrm.repository.master;


import cn.com.connext.scrm.domain.master.IndexModuleConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


@Repository
public interface IndexModuleConfigRepository extends JpaRepository<IndexModuleConfig, Long>, JpaSpecificationExecutor {
    @Query(value = "select * from index_module_config order by config_order desc limit 1", nativeQuery = true)
    IndexModuleConfig findOrderLimitOne();
}
